'use strict';

/**
 * @ngdoc function
 * @name webApp.animation:footer
 * @description
 * # footer
 * Animation of the webApp
 */
angular.module('webApp')
  .animation('.footerShow', function ($location,$window) {
    return{
      addClass: function(ele,done){
        TweenMax.to(ele,1,{
          height: 130 + 'px'
        });
      },
      removeClass: function(ele,done){
        if($location.$$path == '/root/textCommunicate' || $location.$$path == '/root/community'){
          TweenMax.to(ele,1,{
            height: 0 + 'px'
          });
        }
        else{
          TweenMax.to(ele,1,{
            height: 44 + 'px'
          });
        }
      }
    }
  });
